﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B67 RID: 2919
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyBuyGoodsCsReq : IMessage<MonopolyBuyGoodsCsReq>, IMessage, IEquatable<MonopolyBuyGoodsCsReq>, IDeepCloneable<MonopolyBuyGoodsCsReq>, IBufferMessage
	{
		// Token: 0x170024E2 RID: 9442
		// (get) Token: 0x0600829E RID: 33438 RVA: 0x0015CBAC File Offset: 0x0015ADAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyBuyGoodsCsReq> Parser
		{
			get
			{
				return MonopolyBuyGoodsCsReq._parser;
			}
		}

		// Token: 0x170024E3 RID: 9443
		// (get) Token: 0x0600829F RID: 33439 RVA: 0x0015CBB3 File Offset: 0x0015ADB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyBuyGoodsCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170024E4 RID: 9444
		// (get) Token: 0x060082A0 RID: 33440 RVA: 0x0015CBC5 File Offset: 0x0015ADC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyBuyGoodsCsReq.Descriptor;
			}
		}

		// Token: 0x060082A1 RID: 33441 RVA: 0x0015CBCC File Offset: 0x0015ADCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyBuyGoodsCsReq()
		{
		}

		// Token: 0x060082A2 RID: 33442 RVA: 0x0015CBD4 File Offset: 0x0015ADD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyBuyGoodsCsReq(MonopolyBuyGoodsCsReq other) : this()
		{
			this.shopId_ = other.shopId_;
			this.goodsId_ = other.goodsId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060082A3 RID: 33443 RVA: 0x0015CC05 File Offset: 0x0015AE05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyBuyGoodsCsReq Clone()
		{
			return new MonopolyBuyGoodsCsReq(this);
		}

		// Token: 0x170024E5 RID: 9445
		// (get) Token: 0x060082A4 RID: 33444 RVA: 0x0015CC0D File Offset: 0x0015AE0D
		// (set) Token: 0x060082A5 RID: 33445 RVA: 0x0015CC15 File Offset: 0x0015AE15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x170024E6 RID: 9446
		// (get) Token: 0x060082A6 RID: 33446 RVA: 0x0015CC1E File Offset: 0x0015AE1E
		// (set) Token: 0x060082A7 RID: 33447 RVA: 0x0015CC26 File Offset: 0x0015AE26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsId
		{
			get
			{
				return this.goodsId_;
			}
			set
			{
				this.goodsId_ = value;
			}
		}

		// Token: 0x060082A8 RID: 33448 RVA: 0x0015CC2F File Offset: 0x0015AE2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyBuyGoodsCsReq);
		}

		// Token: 0x060082A9 RID: 33449 RVA: 0x0015CC3D File Offset: 0x0015AE3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyBuyGoodsCsReq other)
		{
			return other != null && (other == this || (this.ShopId == other.ShopId && this.GoodsId == other.GoodsId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060082AA RID: 33450 RVA: 0x0015CC7C File Offset: 0x0015AE7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this.GoodsId != 0U)
			{
				num ^= this.GoodsId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060082AB RID: 33451 RVA: 0x0015CCD4 File Offset: 0x0015AED4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060082AC RID: 33452 RVA: 0x0015CCDC File Offset: 0x0015AEDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060082AD RID: 33453 RVA: 0x0015CCE8 File Offset: 0x0015AEE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GoodsId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.GoodsId);
			}
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ShopId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060082AE RID: 33454 RVA: 0x0015CD44 File Offset: 0x0015AF44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this.GoodsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060082AF RID: 33455 RVA: 0x0015CD9C File Offset: 0x0015AF9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyBuyGoodsCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			if (other.GoodsId != 0U)
			{
				this.GoodsId = other.GoodsId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060082B0 RID: 33456 RVA: 0x0015CDEC File Offset: 0x0015AFEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060082B1 RID: 33457 RVA: 0x0015CDF8 File Offset: 0x0015AFF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ShopId = input.ReadUInt32();
					}
				}
				else
				{
					this.GoodsId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003213 RID: 12819
		private static readonly MessageParser<MonopolyBuyGoodsCsReq> _parser = new MessageParser<MonopolyBuyGoodsCsReq>(() => new MonopolyBuyGoodsCsReq());

		// Token: 0x04003214 RID: 12820
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003215 RID: 12821
		public const int ShopIdFieldNumber = 9;

		// Token: 0x04003216 RID: 12822
		private uint shopId_;

		// Token: 0x04003217 RID: 12823
		public const int GoodsIdFieldNumber = 4;

		// Token: 0x04003218 RID: 12824
		private uint goodsId_;
	}
}
